age = 16
# if 条件判断
if age < 18:
    print("考不了驾照")

# score = input("请输入成绩：")
# if score == '100':
#     print("你真棒！")
# if score == '60':
#     print("还要继续努力！")
#
# 比较运算
a = 234
b = 345
print(a <= b)

# 逻辑运算 and or not

a = '啊哈'
b = 'heihei'
if a == '啊哈' and b == "heihei":
    print("a 和 b都很OK")

if a == '啊哈' or b == 'yaya':
    print('a 或者 b 很 OK')
print(not 5 < 3)

# if else

a = 999
if a == 666:
    print("太棒了")
else:
    print("继续努力哟")

a = 5
b = 6
if a <= b:
    print("a 小于等于 b")
else:
    print("a比b大")
# if elif

score = 94
if 85 <= score <= 100:
    print("优秀")
elif 60 <= score < 85:
    print("及格")
elif 0 <= score < 60:
    print("不及格")
else:
    print("分数无效")

ticket = True
temp = 36.3
if ticket:
    print("可以进站了")
    if 36.3 <= temp <= 37.2:
        print("体温正常，安心回家")
    else:
        print("体温异常，被抓去隔离")
else:
    print("请先买票")
